import {get, outPost, post, put, remove} from "../http.js";
// 用户相关的接口
export function getAllPower(page,limit){
    return get(`/power/getAllPower/${page}/${limit}`)
}
export function addPower(form){
    return put("/power/addPower",form)
}
export function editPower(form){
    return post("/power/editPower",form)
}
export function removePower(powerNo){
    return remove(`/power/removePower/${powerNo}`)
}
export function batchRemovePower(id){
    return remove("/power/batchRemovePower/"+id)
}
export function searchPower(search){
    return post("/power/searchPower",search)
}
export function batchAddPower(powers){
    return post("/power/batchAddPower",powers)
}
export function batchOutPower(powers){
    return outPost("/power/batchOutPower",powers)
}
